<template>
  <div class="box">
    <div class="circle" v-for="(v, i) in img" :key="i">
      <img :src="v.imgurl" alt />
      <span>{{ v.list }}</span>
    </div>
  </div>
</template>

<script>
import { getlink } from "@/api/getlink.js";
export default {
  data() {
    return {
      img: [],
      // imgurl:[
      //    {img1:"/bb/b1.png",img2:"我的博客" },
      //    {img1:"/bb/b1.png",img2:"我的博客" },
      //    {img1:"/bb/b1.png",img2:"我的博客" },
      //    {img1:"/bb/b1.png",img2:"我的博客" },
      //    {img1:"/bb/b1.png",img2:"我的博客" },
      //    {img1:"/bb/b1.png",img2:"我的博客" },
      //    {img1:"/bb/b1.png",img2:"我的博客" },
      //    {img1:"/bb/b1.png",img2:"我的博客" },

      // ]
    };
  },
  mounted() {
    getlink("/bb/tuijian").then((ok) => {
      this.img = ok.data;
    });
  },
};
</script>

<style scoped>
.box {
  width: 100%;
  display: flex;
  /* justify-content: space-evenly; */
  margin-top: 0.3rem;
  overflow-x: scroll;
  margin-bottom: 0.4rem;
  height: 1.5rem;
}
.circle {
  height: 1.36rem;
  width: 0.96rem;
  flex: 1;
  margin: 0 0.28rem;
}
.circle span {
  display: block;
  font-size: 0.2rem;
  text-align: center;
}
img {
  width: 0.96rem;
  height: 0.96rem;
  margin-bottom: 0.1rem;
}
::-webkit-scrollbar {
  display: none;
}
</style>
